package com.houtai.bean;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

public class TsArticleCate {
    @ApiModelProperty(value="类别id", name="cate_id")
    private int cate_id;
    @NotEmpty(message = "类别名称不能为空")
    @Length(max = 20, message = "类别名称最多20个字符")
    @ApiModelProperty(value="类别名称", name="cate_name")
    private String cate_name;
    @NotEmpty(message = "banner图片地址不能为空")
    @ApiModelProperty(value="banner图片地址", name="cate_banner")
    private String cate_banner;

    @NotEmpty(message = "banner名称不能为空")
    @Length(max = 50, message = "banner名称最多50个字符")
    @ApiModelProperty(value="banner名称", name="cate_banner_name")
    private String cate_banner_name;

    @NotEmpty(message = "banner跳转链接不能为空")
    @Length(max = 200, message = "banner跳转链接最多200个字符")
    @ApiModelProperty(value="banner跳转链接", name="cate_banner_url")
    private String cate_banner_url;

    @ApiModelProperty(value="0可用1不可用", name="state")
    private int state;

    public int getCate_id() {
        return cate_id;
    }

    public void setCate_id(int cate_id) {
        this.cate_id = cate_id;
    }

    public String getCate_name() {
        return cate_name;
    }

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
    }

    public String getCate_banner() {
        return cate_banner;
    }

    public void setCate_banner(String cate_banner) {
        this.cate_banner = cate_banner;
    }

    public String getCate_banner_name() {
        return cate_banner_name;
    }

    public void setCate_banner_name(String cate_banner_name) {
        this.cate_banner_name = cate_banner_name;
    }

    public String getCate_banner_url() {
        return cate_banner_url;
    }

    public void setCate_banner_url(String cate_banner_url) {
        this.cate_banner_url = cate_banner_url;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
